package com.app.reading;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

public class Main2Activity extends AppCompatActivity {
    Button btn_no;
    Button btn_yes;
    ImageView view;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
//        ActionBar actionbar =getSupportActionBar();
//        if(actionbar!=null){
//            actionbar.hide();
//        }
        initView();
    }

    private void initView() {
        ImageView iv=new ImageView(this);
        iv.setAlpha(0.7f);
        iv.setImageResource(R.drawable.bg_log);
        btn_no=this.findViewById(R.id.btn_no);
        btn_yes=this.findViewById(R.id.btn_yes);
        btn_yes.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent ch=new Intent();
                ch.setClass(Main2Activity.this,Main3Activity.class);
                startActivity(ch);
            }
        });
        btn_no.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent ch=new Intent();
                ch.setClass(Main2Activity.this,Main3Activity.class);
                startActivity(ch);
            }
        });
    }
}
